home *** CD-ROM | disk | FTP | other *** search
- /* attr:text */
- /* ----------------------- dput() ------------------------- March 11,1991 */
- void dput(UCHAR attr, int x, int y, char *s)
- {
- int off;
- char far *txt;
-
- if ( *s )
- {
- off=160*y + (x<<1);
- txt=MK_FP(text_segment, off);
-
- while ( *s )
- {
- *txt++=*s++;
- *txt++=attr;
- }
-
- #if 0
- asm {
- push ds
- push di
-
- mov ah, attr
- mov es, text_segment
- mov si, off
- mov cx, len
- lds di, s
- }
- start:
- asm {
- mov al, ds:[di]
- mov es:si, ax
- inc di
- inc si
- inc si
-
- loop start
-
- pop di
- pop ds
- }
- #endif
- }
-